<#import "/common.ftl" as common />
<@common.commomFrame >
	<div id="breadcrumb">
		<ul class="breadcrumb">
			 <li><i class="fa fa-home"></i><a href="index-2.html">首页</a></li>
			 <li class="active">详细信息</li>
		</ul>
	</div>
	<div class="padding-md " >
		<div class="panel panel-default ">
			<div class="panel-body">
				<div class="padding-md col-md-7 col-md-offset-2">
					<div class="row">
						<div class="panel panel-default">
							<div class="panel-heading"><h3>车次详细信息</h3></div>
							<form  id="trainForm" class="form-horizontal form-border" method="post" action="/train/save">
								<div class="form-group">
									<label class="col-md-2 control-label text-right">车次名称:</label>
									<div class="col-md-7">
										<h3><strong>${(train.trainName)!}</strong></h3>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 control-label"><span style="color: red">*</span>始发站:</label>
									<div class="col-md-3">
										<h4><strong>${(train.startStationName)!}</strong></h4>
									</div>
									<label class="col-md-2 control-label"><span style="color: red">*</span>终点站:</label>
									<div class="col-md-3">
										<h4><strong>${(train.endStationName)!}</strong></h4>
									</div>
								</div>	
								<div class="form-group">
									<label class="col-md-2 control-label"><span style="color: red">*</span>前方站:</label>
									<div class="col-md-3">
										<h4><strong>${(train.frontStationName)!}</strong></h4>
									</div>
									<label class="col-md-2 control-label"><span style="color: red">*</span>后方站:</label>
									<div class="col-md-3">
										<h4><strong>${(train.afterStationName)!}</strong></h4>
										<#-- 
										<select name="afterStationId" class="form-control chzn-select" >
											<option value="0" disabled selected >请选择后方站</option>
											<#if stationList?? && stationList?size gt 0>
												<#list stationList as station>
													<option value="${(station.stationId)!}" <#if (train.afterStationId)?? && train.afterStationId == station.stationId>selected</#if>>${(station.stationName)!}</option>
												</#list>
											</#if>
										</select>
										 -->
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-2 control-label"><span style="color: red">*</span>始发时间：</label>
									<div class="col-md-3">
										<h4><strong><#if (train.startTime)??>${train.startTime?string('HH:mm:ss')}<#else>无</#if></strong></h4>
									</div>
									<label class="col-md-2 control-label"><span style="color: red">*</span>终点站时间：</label>
									<div class="col-md-3">
										<h4><strong><#if (train.endTime)??>${train.endTime?string('HH:mm:ss')}<#else>无</#if></strong></h4>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 control-label"><span style="color: red">*</span>本站到达时间:</label>
									<div class="col-md-3">
										<h4><strong><#if (train.reachTime)??>${train.reachTime?string('HH:mm:ss')}<#else>无</#if></strong></h4>
									</div>
									<label class="col-md-2 control-label"><span style="color: red">*</span>本站发车时间:</label>
									<div class="col-md-3">
										<h4><strong><#if (train.leaveTime)??>${train.leaveTime?string('HH:mm:ss')}<#else>无</#if></strong></h4>
										<#-- 
										<div class="input-group">
											<input id="leaveTime" name="leaveTimeStr" placeholder="请点击选择本站发车时间" class="form-control"
												   type="text" required value="<#if (train.leaveTime)??>${train.leaveTime?string('HH:mm:ss')}</#if>"/>
											<span class="input-group-addon"><i class="fa fa-clock-o"></i></span>
										</div>
										 -->
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 control-label"><span class="text-danger">*</span>是否上水:</label>
									<div class="col-md-3">
										<#if (train.isAddWater)?? && train.isAddWater == 1>
											<h4><strong>是</strong></h4>
										<#elseif (train.isAddWater)?? && train.isAddWater == 0>
											<h4><strong>否</strong></h4>
										<#else>
											<h4><strong>未知</strong></h4>
										</#if>
										<#-- 
										<label class="label-radio inline">
											<input type="radio" name="isAddWater" value="1" required="required" <#if (train.isAddWater)?? && train.isAddWater == 1>checked</#if>>
											<span class="custom-radio"></span>
											是
										</label>
										<label class="label-radio inline">
											<input type="radio" name="isAddWater" value="0" required="required" <#if (train.isAddWater)?? && train.isAddWater == 0>checked</#if> >
											<span class="custom-radio"></span>
											否
										</label>
										 -->
									</div>
									
									<label class="col-md-2 control-label"><span class="text-danger">*</span>是否去污:</label>
									<div class="col-md-3">
										<#if (train.isDealRubbish)?? && train.isDealRubbish == 1>
											<h4><strong>是</strong></h4>
										<#elseif (train.isDealRubbish)?? && train.isDealRubbish == 0>
											<h4><strong>否</strong></h4>
										<#else>
											<h4><strong>未知</strong></h4>
										</#if>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-2 control-label"><span style="color: red">*</span>来车方向:</label>
									<div class="col-md-3">
										<h4><strong>${(train.comeDirectionName)!}</strong></h4>
										<#--  
										<select name="comeDirectionId" id="comeDirectionId" class="form-control chzn-select" onchange="changeComeDirec()" >
											<option value="0" disabled selected >请选择来车方向</option>
											<#if comeDirectionList?? && comeDirectionList?size gt 0>
												<#list comeDirectionList as comeDirection>
													<option value="${(comeDirection.direcId)!}"  data-serial="${(comeDirection.serialNumber)!}"
													<#if (train.comeDirectionId)?? && train.comeDirectionId == comeDirection.direcId>selected</#if>>${(comeDirection.direcName)!}</option>
												</#list>
											</#if>
										</select>
										-->
									</div>
									<label class="col-md-2 control-label"><span style="color: red">*</span>发车方向:</label>
									<div class="col-md-3">
										<h4><strong>${(train.goDirectionName)!}</strong></h4>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 control-label"><span style="color: red">*</span>接车股道:</label>
									<div class="col-md-3">
										<h4><strong>${(train.pickUpTrack)!}股</strong></h4>
									</div>
									<label class="col-md-2 control-label"><span style="color: red">*</span>接车路径序列:</label>
									<div class="col-md-3">
										<h4><strong>${(train.pickUpSequence)!}</strong></h4>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 control-label"><span style="color: red">*</span>发车股道:</label>
									<div class="col-md-3">
										<h4><strong>${(train.departureTrack)!}股</strong></h4>
									</div>
									<label class="col-md-2 control-label"><span style="color: red">*</span>发车路径序列:</label>
									<div class="col-md-3">
										<h4><strong>${(train.departureSequence)!}</strong></h4>
									</div>
								</div>
								<div class="panel-footer text-center">
									<button type="button" class="btn btn-default" onclick="history.go(-1);">返回</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</@common.commomFrame>